import 'package:flutter/widgets.dart';

/// MVVM公共组件，统一封装MVVM中监听状态的组件容器
class GTMVVMCommonWidget extends StatelessWidget {
  final Widget? _child;

  const GTMVVMCommonWidget({Key? key, Widget? child})
      : _child = child,
        super(key: key);

  @override
  Widget build(BuildContext context) {
    return _child == null ? Container() : _child!;
  }
}
